<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use DB;
class ScreController extends Controller
{
    //截图详情显示
    public function getDet(Request $request)
    {
        

    	$det=DB::table('scrshot')->where('id',$request->input('id'))->orWhere('pid',$request->input('id'))->orderBy('id','asc')->get();
        $data=array();
    	// var_dump($det);die;
    	return view('home.det',['data'=>$data,'det'=>$det,'type'=>'scre']);
    }

    // 标签云
    public function getTag()
    {
    	$data=DB::table('manicle')->join('cate','manicle.cate_id','=','cate.id')->get();
    	return view('man.tag',['data'=>$data]);
    }
}
